@import "index";
nm-group {
    background: white;
    min-width: 300px;
    max-width: 820px;
    min-height: 150px;
    max-height: 100%;
    border-radius: 2px;
    box-shadow: 0 0 20px 1px #00000030;
    position: relative;
    >header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        >h1 {
            font-size: 14px;
            font-weight: 500;
            margin: 0;
        }
        >span[class*='icon-'] {
            position: absolute;
            top: 0;
            right: 0;
            padding: 4px;
            margin: 4px;
            border-radius: 20px;
            color: #333333;
            font-size: 16px;
            &:hover {
                transition: all .4s;
                background: #eeeeee;
                color: black;
            }
        }
    }
    >article {
        padding: 0 10px 10px 10px;
        >nm-buttons {
            margin: 0 5px 5px 5px;
        }
        >nm-panel.toolbar {
            margin: 5px 5px 0;
            >nm-toolbar {
                justify-content: flex-end;
            }
        }
        >.list {
            display: flex;
            flex-wrap: wrap;
            user-select: none;
            >ul.item {
                width: 150px;
                height: 300px;
                border: 1px solid #ddd;
                border-radius: 2px;
                margin: 5px;
                overflow-y: auto;
                >.item-title {
                    border-bottom: 1px solid #ddd;
                    background-color: #fafafa;
                    padding: 0 10px;
                    height: 29px;
                    display: flex;
                    align-items: center;
                    position: relative;
                    >i {
                        font-size: 18px;
                        margin-right: 3px;
                    }
                    >.item-title-icons {
                        position: absolute;
                        right: 0;
                        display: none;
                        >i {
                            padding: 5px;
                            vertical-align: middle;
                            font-size: 14px;
                            &:hover {
                                text-shadow: 0 0 15px rgba($a-color, .3);
                                color: $a-color;
                            }
                        }
                    }
                    &:hover {
                        >.item-title-icons {
                            display: inline-block;
                        }
                    }
                }
                >li {
                    padding: 5px 10px;
                    margin: 5px;
                    border: 1px solid #ddd;
                    color: $normal-color;
                    border-left-width: 2px;
                    font-size: 12px;
                    border-top-right-radius: 2px;
                    border-bottom-right-radius: 2px;
                    transition: border-color .3s, color .3s;
                    &:hover {
                        border-color: $assist-color;
                        color: $assist-color
                    }
                    &.isDashed {
                        border-color: $assist-color;
                        border-radius: 2px;
                        border-style: dashed;
                        border-left-width: 1px;
                        min-height: 28px;
                    }
                }
                &.cdk-drop-list-dragging {
                    >li {
                        &:hover {
                            border-color: #ddd;
                            color: $normal-color;
                        }
                        &.cdk-drag-placeholder {
                            border-color: $assist-color;
                            color: $assist-color;
                            border-radius: 2px;
                            border-style: dashed;
                            border-left-width: 1px;
                            min-height: 28px;
                            opacity: .8;
                        }
                        &:not(.cdk-drag-placeholder) {
                            transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
                        }
                    }
                }
            }
        }
    }
}

body>li {
    &.cdk-drag-preview {
        padding: 5px 10px;
        border: 1px solid #ddd;
        border-left-width: 2px;
        font-size: 12px;
        border-top-right-radius: 2px;
        border-bottom-right-radius: 2px;
        border-color: $assist-color;
        color: $assist-color;
        list-style: none;
        background-color: rgba(255, 255, 255, 0.5);
    }
    &.cdk-drag-animating {
        transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
    }
}